# ---------------------------------------------------------------------------
# Author: Keith Hill
# Desc:   Simple global profile to get you going with PowerShell.
# Date:   Nov 18, 2006
# Site:   http://www.codeplex.com/PowerShellCX
# Usage:  Copy this file to your WindowsPowerShell directory e.g.:
#
#  Copy-Item "$Env:PscxHome\Profile\Profile.ps1" (Split-Path $Profile -Parent)
#
# ---------------------------------------------------------------------------

# ---------------------------------------------------------------------------
# Configure standard PowerShell variables to more useful settings
# ---------------------------------------------------------------------------
$MaximumHistoryCount = 512
$FormatEnumerationLimit = 100

# ---------------------------------------------------------------------------
# Create a $UserProfile variable to point to this global profile script
# ---------------------------------------------------------------------------
Set-Variable ProfileDir (split-path $MyInvocation.MyCommand.Path -Parent) -Scope global -Option ReadOnly -Description "PSCX variable"
Set-Variable UserProfile ("$ProfileDir\Profile.ps1") -Scope global -Option ReadOnly -Description "PSCX variable"

# ---------------------------------------------------------------------------
# PowerShell Community Extensions preference variables. Comment/uncomment
# to suit your preferences.
# ---------------------------------------------------------------------------
$PscxTextEditorPreference = "Notepad"
$PscxShowHiddenItemsPreference = $true

# ---------------------------------------------------------------------------
# SMTP preferences
# ---------------------------------------------------------------------------
# $PscxSmtpHostPreference="smtp.some.domain.com"
# $PscxSmtpPortPreference=587
# $PscxSmtpFromPreference="john_doe@some.domain.com"

# ---------------------------------------------------------------------------
# Load the PSCX Snapin
# ---------------------------------------------------------------------------
Add-PSSnapin Pscx

# ---------------------------------------------------------------------------
# Load ps1xml files which override built-in PowerShell defaults.
# ---------------------------------------------------------------------------
Update-FormatData -PrependPath "$Env:PscxHome\FormatData\FileSystem.ps1xml"

# ---------------------------------------------------------------------------
# PowerShell Community Extensions utility functions and filters.
# Comment out or remove any dot sourced functionality that you don't want.
# ---------------------------------------------------------------------------
. "$Env:PscxHome\Profile\Debug.ps1"
. "$Env:PscxHome\Profile\Environment.ps1"
. "$Env:PscxHome\Profile\Environment.VisualStudio2005.ps1"
. "$Env:PscxHome\Profile\GenericAliases.ps1"
. "$Env:PscxHome\Profile\GenericFilters.ps1"
. "$Env:PscxHome\Profile\GenericFunctions.ps1"
. "$Env:PscxHome\Profile\PscxCmdletAliases.ps1"
. "$Env:PscxHome\Profile\FileSystem.ps1"
. "$Env:PscxHome\Profile\Cd.ps1"
. "$Env:PscxHome\Profile\Dir.ps1"
. "$Env:PscxHome\Profile\History.ps1"
. "$Env:PscxHome\Profile\TabExpansion.ps1"
. "$Env:PscxHome\Profile\Imaging.ps1"

# Choose one or write your own
# . "$Env:PscxHome\Profile\EyeCandy.Jachym.ps1"
. "$Env:PscxHome\Profile\EyeCandy.Keith.ps1"

# This will create a record or transcript of the entire PoSh session
. "$Env:PscxHome\Profile\TranscribeSession.ps1"

# This will display all hard drive volumes and their free space
Get-DiskUsage